package com.taotao.service.impl;

import com.taotao.common.pojo.BaseResult;
import com.taotao.common.utils.Constants;
import com.taotao.common.utils.RedisUtils;
import com.taotao.mapper.EyParamMapper;
import com.taotao.pojo.EyParam;
import com.taotao.pojo.EyParamExample;
import com.taotao.service.CleanModeService;
import com.taotao.service.ParamService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.ResourceUtils;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.*;

@Service
public class CleanModeServiceImpl implements CleanModeService {
	
	BaseResult baseResult = new BaseResult();
	@Autowired
	ParamService paramService;

	@Override
	public Map<String, Object> getCleanMode(Map<String, String> map) {
		String cleanModeDeepPrice = paramService.getParam(Constants.cleanModeDeepPrice);
		String cleanModeNormalPrice=paramService.getParam(Constants.cleanModeNormalPrice);

		List list=new ArrayList();
		Map normalMap=new HashMap();
		normalMap.put("mode",Constants.normal_clean);
		normalMap.put("price",cleanModeNormalPrice);
		list.add(normalMap);
		Map deepMap=new HashMap();
		deepMap.put("mode",Constants.deep_clean);
		deepMap.put("price",cleanModeDeepPrice);
		list.add(deepMap);

		return baseResult.getSuccMap(list);
	}
}
